# 三家餐馆 　根据为完成练习9-1而编写的类创建三个实例，并对每个实例调用方法describe_restaurant() 。

# restaurant.py
class Restaurant:
	"""模拟餐馆的运营"""

	def __init__(self, name, cuisine_type):
		"""初始化属性餐馆名restaurant_name和烹饪类型cuisine_type"""
		self.name = name
		self.cuisine_type  =cuisine_type

	def describe_restaurant(self):
		"""指出餐馆名和烹饪类型"""
		print(f"{self.name} restaurant provide {self.cuisine_type} food.")

	def open_restaurant(self):
		"""餐馆营业"""
		print(f"{self.name} restaurant is open now!")

restaurant1 = Restaurant('Happy Village', 'stewing')		# 蒸煮
restaurant2 = Restaurant('Dicos', 'fried')		# 油炸
restaurant3 = Restaurant('BBQ', 'fire-cure')	# 熏烤

print(f"The first restaurant name is {restaurant1.name}.")
restaurant1.describe_restaurant()
restaurant1.open_restaurant()

print(f"\nThe second restaurant name is {restaurant2.name}.")
restaurant2.describe_restaurant()
restaurant2.open_restaurant()

print(f"\nThe third restaurant name is {restaurant3.name}.")
restaurant3.describe_restaurant()
restaurant3.open_restaurant()